package com.my.cd.interpret;

import java.util.Map;

/**
 * 具体表达式：变量表达式
 */
public class VarExpression extends AbstractExpression {

    private String key;

    public VarExpression(String key) {
        this.key = key;
    }

    @Override
    public Float interpreter(Map<String, Float> var) {
        return var.get(key);
    }
}
